package com.hooper.login.exception;

import lombok.*;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/12/28/12:54
 */
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Data
public class BusinessException extends Exception {
    private String message;

    private int errorCode;
    public BusinessException(String message) {
        this.message = message;
    }

    public BusinessException(int errorCode,String message) {
        this.errorCode = errorCode;
        this.message = message;
    }
}
